package com.lingyuan.product.service;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.service.IService;
import com.lingyuan.common.core.domain.vo.pms.ProductSkuVo;
import com.lingyuan.product.domain.SkuEntity;
import com.lingyuan.product.domain.vo.ItemVo;
import org.springframework.web.multipart.MultipartFile;

import java.io.IOException;
import java.util.Collection;
import java.util.List;
import java.util.concurrent.ExecutionException;

public interface SkuService extends IService<SkuEntity> {
    /**
     * 根据id 查询 商品信息
     */
    ProductSkuVo findBySkuId(Long skuId);

    /**
     * 添加商品sku信息
     * @param skuEntity
     */
    void addSkuInfo(SkuEntity skuEntity);
    /**
     * 商品详细信息
     */
    ItemVo findInfo(Long skuId) throws ExecutionException, InterruptedException;

    /**
     * 导入sku信息
     * @param skuEntities
     */
    void bulkAdd(List<SkuEntity> skuEntities);

//    Collection<SkuEntity>  getData();

    /**
     * 导出
     */
    void export() throws IOException;
}
